efi: Avoid using non-existent text base
authorBen Stoltz <[email protected]>
Fri, 31 Jul 2015 15:31:37 +0000 (09:31 -0600)
committerSimon Glass <[email protected]>
Wed, 5 Aug 2015 14:42:41 +0000 (08:42 -0600)
commit9b2174984e58972e657292dc8ff08e8d58dfbf06
treeb97daa0ceed4eb9e4d93903201ba0b9bb1599dc5
parent867a6ac86dd823de409752e9ca5dc8f4d4880f26
efi: Avoid using non-existent text base

When U-Boot runs as an EFI application is does not have a definition of
CONFIG_SYS_TEXT_BASE. U-Boot is a relocatable application and the relocation
is done by EFI. U-Boot can be loaded at any address.

This is similar to how sandbox works. Adjust the early board init to deal
with this.

Signed-off-by: Ben Stoltz <[email protected]>
Signed-off-by: Simon Glass <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
common/board_f.c